ul.page {
    display: inline-block;
    padding: 0;
    margin: 0;
}

ul.page li {display: inline;}

ul.page li a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
}

ul.page li a.active {
    background-color: #4CAF50;
    color: white;
}

ul.page li a:hover:not(.active) {background-color: #ddd;}